//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Core.Serialization;
using OpenLS.Vml.Serialization;

namespace OpenLS.Vml
{
    class OfficeCoreAttributes
    {
        #region IOfficeXmlSerializable Members

        public void ReadXml(ReadContext c)
        {
            Spid = c.GetOptionalString( VmlConstants.OfficeNamespace + "spid");
            Oned = c.GetOptionalString(VmlConstants.OfficeNamespace + "oned");
            RegroupId = c.GetOptionalString(VmlConstants.OfficeNamespace + "regroupid");
            DoubleClickNotify = c.GetOptionalString(VmlConstants.OfficeNamespace+"doubleclicknotify");
            Button = c.GetOptionalString(VmlConstants.OfficeNamespace+"button");
            UserHidden = c.GetOptionalString(VmlConstants.OfficeNamespace + "userhidden") ;
            Bullet = c.GetOptionalString(VmlConstants.OfficeNamespace+"bullet");
            Hr = c.GetOptionalString(VmlConstants.OfficeNamespace+"hr");
            HrStd = c.GetOptionalString(VmlConstants.OfficeNamespace+"hrstd");
            HrNoShade = c.GetOptionalString(VmlConstants.OfficeNamespace+"hrnoshade");
            HrPct = c.GetOptionalString(VmlConstants.OfficeNamespace+"hrpct");
            HrAlign = c.GetOptionalString(VmlConstants.OfficeNamespace+"hralign");
            AllowIncell = c.GetOptionalString(VmlConstants.OfficeNamespace+"allowincell");
            AllowOverlap = c.GetOptionalString(VmlConstants.OfficeNamespace+"allowoverlap");
            UserDrawn = c.GetOptionalString(VmlConstants.OfficeNamespace+"userdrawn");
            BorderTopColor = c.GetOptionalString(VmlConstants.OfficeNamespace+"bordertopcolor");
            BorderLeftColor = c.GetOptionalString(VmlConstants.OfficeNamespace+"borderleftcolor");
            BorderBottomColor = c.GetOptionalString(VmlConstants.OfficeNamespace+"borderbottomcolor");
            BorderRightColor = c.GetOptionalString(VmlConstants.OfficeNamespace+"borderrightcolor");
            DiagramLayout = c.GetOptionalString(VmlConstants.OfficeNamespace+"dgmlayout");
            DiagramNodeKind = c.GetOptionalString(VmlConstants.OfficeNamespace+"dgmnodekind");
            DiagramlayoutMru = c.GetOptionalString(VmlConstants.OfficeNamespace+"dgmlayoutmru");
            InsetMode = c.GetOptionalString(VmlConstants.OfficeNamespace+"insetmode");

        }

        public void WriteXml(WriteContext c)
        {
            c.SetOptionalString(VmlConstants.OfficeNamespace + "spid", Spid);
            c.SetOptionalString(VmlConstants.OfficeNamespace + "oned", Oned);
            c.SetOptionalString(VmlConstants.OfficeNamespace + "regroupid", RegroupId);
            c.SetOptionalString(VmlConstants.OfficeNamespace + "doubleclicknotify", DoubleClickNotify);
            c.SetOptionalString(VmlConstants.OfficeNamespace + "button", Button);
            c.SetOptionalString(VmlConstants.OfficeNamespace + "userhidden", UserHidden);
            c.SetOptionalString(VmlConstants.OfficeNamespace + "bullet", Bullet);
            c.SetOptionalString(VmlConstants.OfficeNamespace + "hr", Hr);
            c.SetOptionalString(VmlConstants.OfficeNamespace + "hrstd", HrStd);
            c.SetOptionalString(VmlConstants.OfficeNamespace + "hrnoshade", HrNoShade);
            c.SetOptionalString(VmlConstants.OfficeNamespace + "hrpct", HrPct);
            c.SetOptionalString(VmlConstants.OfficeNamespace + "hralign", HrAlign);
            c.SetOptionalString(VmlConstants.OfficeNamespace + "allowincell", AllowIncell);
            c.SetOptionalString(VmlConstants.OfficeNamespace + "allowoverlap", AllowOverlap);
            c.SetOptionalString(VmlConstants.OfficeNamespace + "userdrawn", UserDrawn);
            c.SetOptionalString(VmlConstants.OfficeNamespace + "bordertopcolor", BorderTopColor);
            c.SetOptionalString(VmlConstants.OfficeNamespace + "borderleftcolor", BorderLeftColor);
            c.SetOptionalString(VmlConstants.OfficeNamespace + "borderbottomcolor", BorderBottomColor);
            c.SetOptionalString(VmlConstants.OfficeNamespace + "borderrightcolor", BorderRightColor);
            c.SetOptionalString(VmlConstants.OfficeNamespace + "dgmlayout", DiagramLayout);
            c.SetOptionalString(VmlConstants.OfficeNamespace + "dgmnodekind", DiagramNodeKind);
            c.SetOptionalString(VmlConstants.OfficeNamespace + "dgmlayoutmru", DiagramlayoutMru);
            c.SetOptionalString(VmlConstants.OfficeNamespace + "insetmode", InsetMode);
        }

        #endregion
        /// <summary>
        /// AG_OfficeCoreAttributes
        /// </summary>
        /// 



        private string _spid;

        public string Spid
        {
            get { return _spid; }
            set { _spid = value; }
        }
        private string _oned;

        public string Oned
        {
            get { return _oned; }
            set { _oned = value; }
        }
        private string _regroupid;

        public string RegroupId
        {
            get { return _regroupid; }
            set { _regroupid = value; }
        }
        private string _doubleclicknotify;

        public string DoubleClickNotify
        {
            get { return _doubleclicknotify; }
            set { _doubleclicknotify = value; }
        }
        private string _button;

        public string Button
        {
            get { return _button; }
            set { _button = value; }
        }
        private string _userhidden;

        public string UserHidden
        {
            get { return _userhidden; }
            set { _userhidden = value; }
        }
        private string _bullet;

        public string Bullet
        {
            get { return _bullet; }
            set { _bullet = value; }
        }
        private string _hr;

        public string Hr
        {
            get { return _hr; }
            set { _hr = value; }
        }
        private string _hrstd;

        public string HrStd
        {
            get { return _hrstd; }
            set { _hrstd = value; }
        }
        private string _hrnoshade;

        public string HrNoShade
        {
            get { return _hrnoshade; }
            set { _hrnoshade = value; }
        }
        private string _hrpct;

        public string HrPct
        {
            get { return _hrpct; }
            set { _hrpct = value; }
        }
        private string _hralign;

        public string HrAlign
        {
            get { return _hralign; }
            set { _hralign = value; }
        }
        private string _allowincell;

        public string AllowIncell
        {
            get { return _allowincell; }
            set { _allowincell = value; }
        }
        private string _allowoverlap;

        public string AllowOverlap
        {
            get { return _allowoverlap; }
            set { _allowoverlap = value; }
        }
        private string _userdrawn;

        public string UserDrawn
        {
            get { return _userdrawn; }
            set { _userdrawn = value; }
        }
        private string _bordertopcolor;

        public string BorderTopColor
        {
            get { return _bordertopcolor; }
            set { _bordertopcolor = value; }
        }

        private string _borderleftcolor;

        public string BorderLeftColor
        {
            get { return _borderleftcolor; }
            set { _borderleftcolor = value; }
        }
        private string _borderbottomcolor;

        public string BorderBottomColor
        {
            get { return _borderbottomcolor; }
            set { _borderbottomcolor = value; }
        }
        private string _borderrightcolor;

        public string BorderRightColor
        {
            get { return _borderrightcolor; }
            set { _borderrightcolor = value; }
        }
        private string _dgmlayout;

        public string DiagramLayout
        {
            get { return _dgmlayout; }
            set { _dgmlayout = value; }
        }
        private string _dgmnodekind;

        public string DiagramNodeKind
        {
            get { return _dgmnodekind; }
            set { _dgmnodekind = value; }
        }
        private string _dgmlayoutmru;

        public string DiagramlayoutMru
        {
            get { return _dgmlayoutmru; }
            set { _dgmlayoutmru = value; }
        }
        private string _insetmode;

        public string InsetMode
        {
            get { return _insetmode; }
            set { _insetmode = value; }
        }






















        
    }
}
